package com.zp.crm.dao.PubDao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zp.crm.entity.Pub.PubEntity;
import com.zp.crm.taskls.Timetask.TakEntity;
import com.zp.crm.util.GrouoBy.Gro;

public interface PubDao {

	int selectcount(@Param(value="code")String code, @Param(value="name")String name);

	List<PubEntity> select(@Param(value="code")String code, @Param(value="name")String name,@Param(value="page") int pageIndex,@Param(value="size") int size);

	int insert(PubEntity entity);

	int edit(PubEntity entity);

	int delete(@Param(value="id")int id);

	List<PubEntity> SelectCode(@Param(value="code")String code);

	List<Gro> SelectGy(String type);

	int SelectByTypeNameYz(@Param(value="code")String type, @Param(value="name")String name);

	PubEntity SelectById(@Param(value="id")int id);

	List<TakEntity> LsSelect(String sql);

	int LsUpdate(@Param(value="u_list")List<TakEntity> ulist, @Param(value="stuts")String stuts);

	int LsInsert(@Param(value="u_list")List<TakEntity> ulist);

}
